package com.xc;

import cn.hutool.core.bean.BeanUtil;
import com.xc.domain.pojo.User;
import org.springframework.beans.BeanUtils;
import org.springframework.data.redis.core.RedisTemplate;

import java.util.ArrayList;
import java.util.Collections;

public class Test2 {
    public static void main(String[] args) throws Exception {
        User user = new User();
        user.setUsername("123");
        User user1 = new User();
        user1.setPassword("456");
        // BeanUtils.copyProperties(user1,user);
        BeanUtil.copyProperties(user1,user);
        System.out.println(user);
        System.out.println(user1);

    }
}
